<%@ page import="com.pro.bean.Users" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>个人信息修改</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta charset="utf-8"/>
	<link href="css/bootstrap.css" rel="stylesheet">
	<link rel="stylesheet" href="css/main.css">
    <script type="text/javascript" src="../js/jquery .js"></script>
	<script type="text/javascript" src="../css/bootstrap.js"></script>
    <link href="../css/bootstrap.css" rel="stylesheet">
    
     <script language="javascript">
      function check(){
          if(form1.currentpwd.value==""){
          alert("请输入当前密码！");
          form1.currentpwd.focus();
          return false;
          }
          if(form1.newpsd.value==""){
          alert("请输入新密码！");
          form1.newpsd.focus();
          return false;
          }
           if(form1.renewpsd.value==""){
          alert("请确认新密码！");
          form1.renewpsd.focus();
          return false;
          }
       if(form1.newpsd.value!=form1.renewpsd.value)
    {
    alert("两次输入的密码不一致！");
    form1.renewpsd.focus();
    return false;
    }
          }
     </script>
    

  </head>
  
  <body>
  <form method="post" action="<%=basePath%>servlet.modInformation" name="form1" onsubmit="return check()">
   <div id="userinfordiv" style="width:900px;margin:auto;">

<br/><br/><br/>

			<div id="userdiv" style="background-color: #efefef; height: 170px">
				<p>
					<strong>个人信息变更</strong>
				</p>
				<p></p>

				<div style="width: 400px; float: left">
					<p>
						<span>&nbsp;&nbsp;当前密码&nbsp;&nbsp;&nbsp;&nbsp;</span>
						<input id="currentpwd" type="text"name="currentpwd"/>
					</p>
					<p>
						<span>&nbsp;&nbsp;新密码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
						<input id="newpsd" type="text"name="newpsd">
					</p>
					<p>
						<span>&nbsp;新密码确认&nbsp;</span>
						<input id="renewpwsd" type="text"name="renewpsd">
					</p>
				</div>

				<div style="width: 410px; float: left">
					<p>
						<br>
						<br>
						<br>
						<br>
						<br>
						<button type="submit" class="btn btn-primary btn-sm">
							&nbsp;更新&nbsp;
						</button>
					</p>
				</div>
			</div>
			<hr></hr>

			<div id="carddiv" style=" height: 270px;">
				<div style="width: 400px; float: left">
					<table class="table table-bordered table-hover">
						<td height="270px">
							正面
						</td>
					</table>
				</div>
				<div style="width: 400px; float: right">
					<table class="table table-bordered table-hover">
						<td height="270px">
							反面
						</td>
					</table>
				</div>
			</div>
			</div>
			</form>
  </body>
</html>
